﻿@model PhotoGallery.Models.RegisterModel
@using PhotoGallery.Areas.Auth.Views
@{
    ViewBag.Title = "Register";
}

<h2>@Account.register</h2>

@*<hgroup class="title">
    <h1>@Account.register</h1>
    <h2>Use the form below to create a new account.</h2>
</hgroup>*@

@*<p class="message-info">
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>*@

@Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm((string)ViewBag.FormAction, "Account")) {
    <fieldset>
        <legend>@Account.registrationForm</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </li>
        </ol>
        <input type="submit" value="@Account.register" title="Register" />
    </fieldset>
}